package com.ruoyi.master.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 成就条件对象 achievement
 * 
 * @author jiandan
 * @date 2024-10-23
 */
@Data
public class Achievement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成就ID */
    private Long achievementId;

    /** 策略ID */
    @Excel(name = "策略ID")
    private Long strategyId;

    /** 成就条件组装后的描述 */
    @Excel(name = "成就条件组装后的描述")
    private String conditionContent;

    /** 条件 10累计，20连续，30指定关键字 */
    @Excel(name = "条件 10累计，20连续，30指定关键字")
    private String conditions;

    /** 条件单位 10小时，20次 */
    @Excel(name = "条件单位 10小时，20次")
    private String conditionUnit;

    /** 条件值 10小时，20次 */
    @Excel(name = "条件值 10小时，20次")
    private Integer conditionVal;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 用户名 */
    @Excel(name = "用户名")
    private String createName;

    public void setAchievementId(Long achievementId) 
    {
        this.achievementId = achievementId;
    }

    public Long getAchievementId() 
    {
        return achievementId;
    }
    public void setStrategyId(Long strategyId) 
    {
        this.strategyId = strategyId;
    }

    public Long getStrategyId() 
    {
        return strategyId;
    }
    public void setConditionContent(String conditionContent) 
    {
        this.conditionContent = conditionContent;
    }

    public String getConditionContent() 
    {
        return conditionContent;
    }
    public void setConditions(String conditions)
    {
        this.conditions = conditions;
    }

    public String getConditions()
    {
        return conditions;
    }
    public void setConditionUnit(String conditionUnit) 
    {
        this.conditionUnit = conditionUnit;
    }

    public String getConditionUnit() 
    {
        return conditionUnit;
    }
    public void setConditionVal(Integer conditionVal) 
    {
        this.conditionVal = conditionVal;
    }

    public Integer getConditionVal() 
    {
        return conditionVal;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("achievementId", getAchievementId())
            .append("strategyId", getStrategyId())
            .append("conditionContent", getConditionContent())
            .append("conditions", getConditions())
            .append("conditionUnit", getConditionUnit())
            .append("conditionVal", getConditionVal())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("createName", getCreateName())
            .toString();
    }
}
